from flask_restful import Api

from apps.settingApi.api.role.views import roleListView,rolePkView,rolePermissionListView,roleUserListView

setting_role_api = Api(prefix='/setting/role/')

# 列表操作
setting_role_api.add_resource(roleListView,'/rolelist/',endpoint="rolelist")
# PK操作
setting_role_api.add_resource(rolePkView,'/rolepk/<pk>/',endpoint="rolepk")

# 角色权限
setting_role_api.add_resource(rolePermissionListView,'/rolepermissionlist/',endpoint="rolepermissionlist")

# 角色用户
setting_role_api.add_resource(roleUserListView,'/roleuserlist/',endpoint="roleuserlist")